package org.jeecg.modules.demo.baseselfordercommodity.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.baseselfordercommodity.entity.BaseSelfOrderCommodity;
import org.jeecg.modules.demo.baseselfordercommodity.mapper.BaseSelfOrderCommodityMapper;
import org.jeecg.modules.demo.baseselfordercommodity.service.IBaseSelfOrderCommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description: 订单商品表
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Service
public class BaseSelfOrderCommodityServiceImpl extends ServiceImpl<BaseSelfOrderCommodityMapper, BaseSelfOrderCommodity> implements IBaseSelfOrderCommodityService {
    @Autowired
    private BaseSelfOrderCommodityMapper baseSelfOrderCommodityMapper;

    @Override
    public IPage<Map<String, Object>> listSelfOrder(Page<Map<String, Object>> page, String storeId, String memberName
            , String orderCode, String memberPhone, String startDate, String endDate, String status) {

        return baseSelfOrderCommodityMapper.listSelfOrder(page, storeId, memberName, orderCode, memberPhone, startDate, endDate, status);
    }
}
